/*
 * bootsecto.h
 *
 *  Created on: 17/10/2011
 *      Author: Pablo Arias & Juan Pablo De Blas
 */

#ifndef BOOTSECTO_H_
#define BOOTSECTO_H_

#include "lista.h"



typedef struct {
	unsigned int reservedSectors;  //Cantidad de Sectores Reservados
	unsigned int fatSize;
	char fatCant;
	char sectorPerCluster;
	unsigned int rootCluster;

}bootSector;

unsigned int getFatSize(char *boot);
unsigned int getReservedSectors(char *boot);
char getSectorPerCluster(char *boot);
char getNumberOfFat(char *boot);
unsigned int getRootCluster(char *boot);
unsigned int getSectorClusterN(unsigned int n,bootSector boot);
bootSector getBootSector(char disk);
bootSector getBootSectorSocket();
Nodo *getFreeClusters(char disk);
void getFatTable(char*fat);
//int *getFatTable(char disk);

#endif /* BOOTSECTO_H_ */
